package org.gp953.pet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.gp953.basic.domain.BaseDomain;
import org.gp953.org.domain.Shop;
import org.gp953.user.domain.User;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BaseDomain {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date offsaletime = new Date() ;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date onsaletime = new Date() ;
    private Integer state;
    private BigDecimal costprice;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date() ;
    private Long type_id;
    private PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    private Long adopt_id;
    private Long search_master_msg_id;

    // 用于接收宠物详情参数
    private PetDetail detail = new PetDetail();

}
